Skip to content

获取出厂检查结果

请求参数类型描述
device_snstring设备序列号
php
$instance->v3->iotmanage->deviceInspections->_device_sn_->getAsync([
  'device_sn' => 'AAAAA123456789012345678',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/iotmanage/device-inspections/{device_sn}')->getAsync([
  'device_sn' => 'AAAAA123456789012345678',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/iotmanage/device-inspections/{device_sn}']->getAsync([
  'device_sn' => 'AAAAA123456789012345678',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->iotmanage->deviceInspections->_device_sn_->get([
  'device_sn' => 'AAAAA123456789012345678',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/iotmanage/device-inspections/{device_sn}')->get([
  'device_sn' => 'AAAAA123456789012345678',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/iotmanage/device-inspections/{device_sn}']->get([
  'device_sn' => 'AAAAA123456789012345678',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
device_snstring设备序列号
wired_macstring有线网卡MAC地址
wireless_macstring无线网卡MAC地址
bluetooth_macstring蓝牙MAC地址
app_versionstring刷脸应用版本号
camera_snstring摄像头序列号
imeistring国际移动设备识别码
resultstring查询结果
SUCCESS | WARN | FAIL 枚举值之一
errorsstring[]错误信息
warningsstring[]告警信息
inspect_timestring查询时间

参阅 官方文档

Published on the GitHub by TheNorthMemory